Final Project

Concept Description

Sustainable Development Goals:Good Health And Well-Being

The third goal of the United Nations Development Goals is to ensure a healthy lifestyle and promote the well-being of people of all ages. This goal specifically includes measures such as reducing child and maternal mortality rates, popularizing basic healthcare, preventing and treating non communicable diseases, and promoting mental health and well-being. These measures aim to ensure that everyone can enjoy the guarantee of health and well-being by improving global health levels.

Problem points solved by the project

In today's society, with the acceleration of work pace and the increase of competitive pressure, people generally face pressure in work and study. This kind of pressure not only affects people's physical health, but more importantly, it has a serious impact on their mental health. Many people feel lonely, anxious, depressed, and lack emotional support and companionship. To alleviate this problem, we have designed an intelligent potted plant based on the third United Nations Sustainable Development Goal.

Pre- design

Idea sketch

This is an intelligent potted plant with a LCD screen and sound sensor, attracting people with its cute appearance.

Major function


1. The visual effect of green plants: Green plants can alleviate visual fatigue, make the work environment more comfortable, make the mood more joyful, improve focus, and increase work efficiency.
2. Relaxation effect of sound: The randomly played prompt sound can help users relax their body and mind, and relieve stress.
3. Psychological stress relief: The dynamic "small expressions" displayed on the screen can convey positive feedback to the user. Users control the lighting of LED lights by clapping and blowing air. Through the process of interactive games, users can shift their attention and reduce work pressure.

Technical implementation

Sound sensor - microphone:
Users can control the LED lights to turn off by blowing air

0.96-inch OLED LCD screen:
Touching plants, vibration sensors receiving signals, LCD screen switching dynamic "small expressions"

Horn:
Vibration sensor receives signal, horn emits random statement

Interaction mode

Palm response: When the user claps, the electronic potted plant will light up, providing visual feedback. Blow air into the microphone and the light goes out.

Touch response: When the user touches a plant, different expressions will be displayed on the LCD screen, accompanied by different sound effects.

Potted plant concept diagram

Potting device diagram

Schematic diagram of potted plant achievements

Appearance production - purchasing materials

Appearance production - process

Code testing

"Small emoji" display

动效生成链接

Sound playback

#include 
#include 
#include                          
int D[10] = {2400, 2250, 2000, 2700, 2200, 2200}; // 数组长度应匹配实际使用的长度
int n = 0;
void setup() {
Serial.begin(9600);
pinMode(32, OUTPUT);
digitalWrite(32, HIGH);
pinMode(34, OUTPUT);
digitalWrite(34, HIGH);
pinMode(36, OUTPUT);
digitalWrite(36, HIGH);
pinMode(38, OUTPUT);
digitalWrite(38, HIGH);
pinMode(40, OUTPUT);
digitalWrite(40, HIGH);
pinMode(42, OUTPUT);
digitalWrite(42, HIGH);
}
                            
void loop() {
int sensorValue = analogRead(A0); // 模拟读取传感器值
if (sensorValue > 100) {
int randomAudio = random(2, 8); // random函数返回[1, 6]的随机数
switch (randomAudio) {
case 2:
randomAudio = 32;
n = 0;
break;
case 3:
randomAudio = 34;
n = 1;
break;
case 4:
randomAudio = 36;
n = 2;
break;
case 5:
randomAudio = 38;
n = 3;
break;
case 6:
randomAudio = 40;
n = 4;
break;
case 7:
randomAudio = 42;
n = 5;
break;
}
Serial.print(D[n]);
Serial.print("  ");
digitalWrite(randomAudio, LOW);
delay(D[n]); // 延迟时间
digitalWrite(randomAudio, HIGH);
Serial.println(randomAudio);
}
}   
                    

The on/off of LED lights

Renderings - Intelligent Potted Plants

Final work